import request from '@/utils/request'

// 上传OTA升级文件
export function OTAUpdate(token, data) {
  return request({
    url: '/access/service/receiveFile',
    method: 'post',
    params: { token },
    data:data,
    headers: {
      'Content-Type': 'multipart/form-data'
    },
    responseType: 'blob'
  })
}
// 上传Signed文件
export function SignedUpdate(token, data) {
  return request({
    url: '/access/service/receiveSigned',
    method: 'post',
    params: { token },
    data:data,
    headers: {
      'Content-Type': 'multipart/form-data'
    },
    responseType: 'blob'
  })
}
